package com.zhang.backend.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zyx
 * @since 2021-12-23
 */
@Data
@TableName("order_product")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OrderProduct对象", description="")
public class OrderProduct extends Model<OrderProduct> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单表id")
    private Long orderId;

    @ApiModelProperty(value = "商品id")
    private Long productId;

    @ApiModelProperty(value = "商品数量")
    private Float number;

    @ApiModelProperty(value = "商品名字")
    private String productName;

    @ApiModelProperty(value = "单价")
    private Float productPrice;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
